using Commons.Models.Scores;
using Commons.Models.Settings.Matchers;
using System;

namespace Commons.Models.Definitions
{
	[Serializable]
	public class HighScoreDefinition
	{
		public int Code { get; protected set; }
		public string Name { get; protected set; }
		public Periodicity Periodicity { get; protected set; }
		public IMatcher<object> Matcher { get; set; }

		public HighScoreDefinition(int code, string name, Periodicity periodicity)
		{
			this.Code = code;
			this.Name = name;
			this.Periodicity = periodicity;
			this.Matcher = new AndMatcher<object>();
		}
	}
}

